﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lazy01
{
    class Program
    {
        static void Print(Calculate ca)
        {
            Console.WriteLine("请输入你要使用的运算符:+ - * /");
            string s03 = Console.ReadLine();
            char f = char.Parse(s03);

            switch (f)
            {
                case'+':
                    Dome01 a = new Dome01();
                    a.receive();
                    a.DisplayResult();
                break;
                case '-':
                    Dome02 b = new Dome02();
                    b.receive();
                    b.DisplayResult();
                    break;
                case '*':
                    Dome03 c = new Dome03();
                    c.receive();
                    c.DisplayResult();
                    break;
                case '/':
                    Dome04 d = new Dome04();
                    d.receive();
                    d.DisplayResult();
                    break;
            }
        }
        public static void Main() {
            Calculate calculate1 = new Calculate();
            Print(calculate1);
        }
    }
}
